package com.betterwood.dragon.dao;

import java.util.List;

import com.betterwood.dragon.dao.enhances.CustomeProductRepo;
import com.betterwood.dragon.dao.enhances.CustomeRecordRepo;
import com.betterwood.dragon.entity.Product;
import com.betterwood.dragon.entity.Record;

import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

/**
 * @author dominic
 * @create 2021-03-17 14:16
 */
@Repository
public interface ProductDao extends PagingAndSortingRepository<Product, String>, CustomeProductRepo {

    List<Product> findAll();

    Product getByProductNo(String productNo);

    Product getOneById(String productId);

    // Site getOneById(String id);

}
